﻿<?php echo $header; ?>
<div class="container">   
	<div class="content">
    	<div class="bodyLeft">
        	<?php echo $column_left; ?>
        </div><!-- end body left -->
        <div class="bodyRight">
        	 <?php require_once("catalog/view/theme/fritids/template/slideshow/slider.php"); ?>
            <div class="body-content">
            	<div class="heading">
                    <h2>Produkter</h2>
                    <img class="imgTemp" src="catalog/view/theme/fritids/src/images/imgTemp1.png" />
                    <div class="clear"></div>
                </div>				
				<?php if (!$categories && !$products) { ?>
						<h2><?php echo $text_error; ?></h2>
				<?php } ?>
					 <?php if ($products) { ?>
					<div id="product-list">					
						  <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>    
						  <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
						  <?php if (isset($products[$j])) { ?>
                    <ul>		
                        <li class="product-list-eachProduct">
                            <a class="product-list-image" href="<?php echo $products[$j]['href'];?>"><img src="<?php echo $products[$j]['thumb'];?>" title="<?php echo $products[$j]['name'];?>" alt="<?php echo $products[$j]['name'];?>" /></a>
                            <div class="product-list-info">
                                <a class="product-list-name" href="<?php echo $products[$j]['href']; ?>" ><?php echo $products[$j]['name']; ?></a>
								<?php if ($display_price) { ?>      
								<?php if (!$products[$j]['special']) { ?>								
							   <p>Pris:<span>DKK </span><span class="product-list-price"><?php echo $products[$j]['price']; ?></span></p>                           
								<?php } else { ?>
								<span class="product-list-price"><?php echo $products[$j]['price']; ?></span></br><span class="product-list-price"><?php echo $products[$j]['special']; ?> </span>
								<?php } ?>  					
							</div>
                          <a class="product-list-buy" href="<?php echo $products[$j]['href']; ?>" title="<?php echo $button_add_to_cart; ?>">Buy</a>
								<?php } ?>
					    </li>
					</ul>
						  <?php } ?>
						  <?php } ?>
						  <?php } ?>
						  <?php } ?>
						<div class="clear"></div>
					</div>		 
			</div>	
		</div>      
	</div>
</div> 
<?php echo $footer; ?>
